﻿using CommonModel.Util;
using GXRTBTC.PublicClassLibrary.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GXRTBTC.PublicClassLibrary.Model
{
    /// <summary>
    /// 时间段
    /// </summary>
    public class TimePeriod
    {
        public string timeStart { get; set; } = "00:00:00";    //开机时间
        public string timeEnd { get; set; } = "23:59:59";    //关机时间

        public int iStart
        {
            get
            {
                return "".Equals(timeStart) ? 0 : int.Parse(TransForm.DateTimeStrFormat(timeStart, "HHmmss"));
            }
        }
        public int iEnd
        {
            get
            {
                return "".Equals(timeEnd) ? 0 : int.Parse(TransForm.DateTimeStrFormat(timeEnd, "HHmmss"));
            }
        }
    }
}
